﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Xml.Serialization;
using MainScene.Evt.Condition;
using MainScene.Evt.Command;
using Sirenix.Serialization;

namespace MainScene
{
    [Serializable]
    public class SceneEventData
    {
        [XmlAttribute("StoryEnable")]
        public bool StoryEnable;
        [XmlAttribute("eventId")]
        public string eventId;
        [XmlAttribute("uiVisible")]
        public bool uiVisible;
        [XmlAttribute("enableCameraUpdate")]
        public bool enableCameraUpdate;
        [XmlAttribute("disableMainRole")]
        public bool disableMainRole;
        [XmlAttribute("isAwaysExist")]
        public bool storyForever;
        [XmlAttribute("condition_and")]
        public bool condition_and;
        [XmlAttribute("forceShowUI")]
        public bool endForceShowUI;
        public List<ConditionData> m_condition_data_list;
        public List<CommandData> m_content_data_list;

        private void Init()
        {
            StoryEnable = true;
            eventId = "new";
            uiVisible = false;
            enableCameraUpdate = false;
            disableMainRole = true;
            storyForever = false;
            condition_and = true;
            endForceShowUI = true;
            m_condition_data_list = new List<ConditionData>();
            m_content_data_list = new List<CommandData>();
        }
        public SceneEventData()
        {
            Init();
        }
    }
}

